package com.hl.shifangzhiyu.web;

import com.hl.shifangzhiyu.pojo.Hotclass;
import com.hl.shifangzhiyu.service.HotclassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/hotclass")
public class HotclassController {

    @Autowired
    private HotclassService hotclassService;

    @RequestMapping("/selectHotclass")
    public List<Hotclass> selectHotclass(){
        return hotclassService.selectHotclass();
    }
}
